package com.edu.service.impl;

import com.edu.bean.Book;
import com.edu.service.BookService;
import org.springframework.stereotype.Service;



public  class BookServiceImpl implements BookService {

    @Override
    public void selectBook() {
        System.out.println("执行了 book的查询方法");
    }

    @Override
    public int addBook()
    {
        System.out.println("执行了 book的添加方法");
        return 1;
    }

    @Override
    public void deleteBook() {

        System.out.println("执行了 book的删除方法");
        String str = null;
        System.out.println(str.length());
    }

    @Override
    public int updateBook() {
        System.out.println("执行了 book的修改方法");
        return 1;
    }

    @Override
    public void selectAll() {
        System.out.println("执行了查询所有书本");
    }

    @Override
    public Book select() {
        System.out.println("查书");
        return new Book();
    }


}
